package fr.afcepf.ticketing.service;

import fr.afcepf.ticketing.domain.Ticket;

public class CartTicket {

	private Ticket ticket;
	private Integer quantity;

	public CartTicket(Ticket ticket, Integer quantity) {
		this.ticket = ticket;
		this.quantity = quantity;
	}

	public Float getTicketsPrice() {
		return ticket.getPrice() * quantity;
	}

	public Ticket getTicket() {
		return ticket;
	}

	public void setTicket(Ticket ticket) {
		this.ticket = ticket;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	
}